|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
WSDDJavaJ2EEProvider.java | - | 50% | 50% | 50% |
|
1 |
/*
|
|
2 |
* Copyright 2001-2004 The Apache Software Foundation.
|
|
3 |
*
|
|
4 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5 |
* you may not use this file except in compliance with the License.
|
|
6 |
* You may obtain a copy of the License at
|
|
7 |
*
|
|
8 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9 |
*
|
|
10 |
* Unless required by applicable law or agreed to in writing, software
|
|
11 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13 |
* See the License for the specific language governing permissions and
|
|
14 |
* limitations under the License.
|
|
15 |
*/
|
|
16 |
|
|
17 |
package org.apache.geronimo.ews.ws4j2ee.wsutils;
|
|
18 |
|
|
19 |
import org.apache.axis.EngineConfiguration;
|
|
20 |
import org.apache.axis.Handler;
|
|
21 |
import org.apache.axis.deployment.wsdd.WSDDProvider;
|
|
22 |
import org.apache.axis.deployment.wsdd.WSDDService;
|
|
23 |
|
|
24 |
/**
|
|
25 |
* refering to axis comment of pluggable providers
|
|
26 |
* Look for file META-INF/services/org.apache.axis.deployment.wsdd.Provider
|
|
27 |
* in all the JARS, get the classes listed in those files and add them to
|
|
28 |
* providers list if they are valid providers.
|
|
29 |
* Here is how the scheme would work.
|
|
30 |
* A company providing a new provider will jar up their provider related
|
|
31 |
* classes in a JAR file. The following file containing the name of the new
|
|
32 |
* provider class is also made part of this JAR file.
|
|
33 |
* META-INF/services/org.apache.axis.deployment.wsdd.Provider
|
|
34 |
* By making this JAR part of the webapp, the new provider will be
|
|
35 |
* automatically discovered.
|
|
36 |
*
|
|
37 |
* @author Srinath Perera(hemapani@opensource.lk)
|
|
38 |
*/
|
|
39 |
public class WSDDJavaJ2EEProvider extends WSDDProvider { |
|
40 |
public static final String PROVIDER_J2EE = "j2ee"; |
|
41 |
|
|
42 | 1 |
public String getName() {
|
43 | 1 |
return PROVIDER_J2EE;
|
44 |
} |
|
45 |
|
|
46 | 0 |
public Handler newProviderInstance(WSDDService service,
|
47 |
EngineConfiguration registry) |
|
48 |
throws Exception {
|
|
49 | 0 |
return new org.apache.geronimo.ews.ws4j2ee.wsutils.J2EEProvider(); |
50 |
} |
|
51 |
} |
|
52 |
|
|